<?
ob_start();
require_once("/var/www/html/new/d/common/access.php");
if($access['yd']){
    require_once("/var/www/html/new/d/common/yd/auth_yd.php");
    require_once("/var/www/html/new/d/common/yd/nav_yd.php");
}else{
    require_once("/var/www/html/new/d/common/auth.php");
    require_once("/var/www/html/new/d/common/nav.php");
}
require_once("/var/www/html/new/d/class/Navi.php");
require_once("/var/www/html/new/d/class/LeftNavi_test.php");
require_once("/var/www/html/new/d/class/notice.class.php");
require_once("/var/www/html/new/d/common/h_config.php");
if(!$_SESSION['unreadmsg']){
	require_once('/var/www/html/new/d/common/autoload.php');
	$_SESSION['unreadmsg'] = \pft\notice::UnReadCount($_SESSION['sid'],$GLOBALS['le']);
}
$out_html=ob_get_contents();
ob_end_clean();
$urls=$_a->authUrl();
if($_SESSION['sdtype']==0){//供应商是否由供应伙伴
	$str="select m.id from pft_member_relationship r join pft_member m on r.son_id=m.id where son_id=".$_SESSION['sid'].
		" and r.status=0 and m.status=0 and r.ship_type=0 limit 1";
	$GLOBALS['le']->query($str);
	if(!$GLOBALS['le']->fetch_assoc()){
		$urls=array_diff($urls,array("partner.html?dtype=1"));
	}
}
$leftnavi=new LeftNavi($_auth,$_auth_group,$_SESSION['sdtype'],$urls);

$ptypeT=array("A"=>"门票","B"=>"线路","C"=>"酒店",""=>"门票");
$defaultType=$ptypeT[$_REQUEST['p_type']]?$ptypeT[$_REQUEST['p_type']]:"门票";
if($_REQUEST['act']=="download"){//下载图片   
    $code_img = 'http://qr.liantu.com/api.php?text='.$_REQUEST['txt'];
	$file=file_get_contents($code_img);
	header('Content-type: image/jpg'); 
	$name="分享活动二维码";
	header("Content-Disposition:attachment;filename=$name.jpg");
	echo $file;
	exit;
}
echo $out_html;
$qq = array(
    'default'=>array(
        2110919586=>'客服1',
        2921140262=>'客服2',
        3117514004=>'客服3',
        2472194741=>'联盟咨询1',
        3275019874=>'联盟咨询2',
    ),
    'yyd'=>array(
        2110919586=>'客服1',
        2921140262=>'客服2',
        3117514004=>'客服3',
        2472194741=>'联盟咨询1',
        3275019874=>'联盟咨询2',
    ),
);
$showQQ = array(
    'www',
);
$unshowAccountQQ = array(
    '100010',
    '124406',
    '124073',
);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <?php if($access['yd']):?>
        <link rel="icon" href="http://yyd.12301.cc/yd/favicon.ico" mce_href="http://yyd.12301.cc/yd/favicon.ico" type="image/x-icon">
        <link rel="shortcut icon" href="http://yyd.12301.cc/yd/favicon.ico" mce_href="http://yyd.12301.cc/yd/favicon.ico" type="image/x-icon">
    <?php endif;?>
	<link rel="stylesheet" type="text/css" href="http://www.12301.cc/css/default_today.css"/>
	<script language="javascript" src="http://www.12301.cc/js/jquery-1.7.2.min.js"></script>
    <script language="javascript" src="http://www.12301.cc/js/sldomain.js"></script>
	<link rel="stylesheet" type="text/css" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
	<!--<script src="http://www.12301.cc/wx_public/zclip/jquery.zclip.min.js"></script>-->
	<title><?=isset($page_title)? $page_title:''?><?=$h_config[$httphost]['name']?>旅游营销平台</title>
	<script>
//       $(function(){
//            $(".clipLinkBtn").zclip({
//                path: "http://www.12301.cc/wx_public/zclip/ZeroClipboard.swf",
//                copy: function(){
//                    return $(this).attr("data-link");
//                },
//                deforeCopy : function(){},
//                afterCopy : function(){
//				   alert("已复制到剪贴板")
//                }
//            });
//        });

    </script>

</head>
<body>
<?
$host = explode('.', $_SERVER['HTTP_HOST']);
if(in_array($host[0],$showQQ) && !in_array($_SESSION['saccount'],$unshowAccountQQ)){
?>

		<div class="sidebar_box">
			<span class="iconfont code_icon">&#xe66e;<img class="code_img" src="http://www.12301.cc/u/images/code.png"></span>
		</div>
		<!-- <ul class="qq_list">
            <?/*
            switch($host[0]){
                case 'yyd':
                    $x = 'yyd';
                default:
                    $x = 'default';
            }
            foreach ($qq[$x] as $ke => $va) {
            ?>
            <li><a class="iconfont c_c" target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?=$ke?>&site=qq&menu=yes"><img id="img_qq" onerror="this.parentNode.removeChild(this)" border="0" src="http://wpa.qq.com/pa?p=2:<?=$ke?>:52" alt="点击这里联系客服" title="点击这里联系客服"> <span><?=$va?></span></a></li>
            <?}*/?>
		</ul> -->
	
<?}?>
<script>
$(document).ready(function(){
	$(".code_icon").mouseover(function(){
		$(".code_img").css("display","block");
	});
	$(".code_icon").mouseout(function(){
		$(".code_img").css("display","none");
	});
	$(".code_img").mouseover(function(){
		$(".code_img").css("display","block");
	});
	$(".code_img").mouseout(function(){
		$(".code_img").css("display","none");
	});
	});
</script>
<style>
.header_top {
padding-top: 15px;
float: right;
cursor:pointer;
}
</style>

	<div id="mask"></div>
	<div id="fullbg"></div>
    <!--头部-->
	<!-- <div class="headerWrap">
		<div class="header">
			<div class="top">
				<ul class="top_right">
					<li><a href="#" id="setHome">设为首页</a><?if($access['yd'] !== true){?><span>|</span></li>
					<li><a href="#" id="addFav">加入收藏</a><span>&nbsp;</span></li><?}?>
				</ul>
				<span class="welc">您好，<a href="account_info.html"><?=$_SESSION['sdname']?$_SESSION['sdname']."：":""?><?=$_SESSION['dname']?></a></span>
				<a href="notice.html?inbox" class="xiaoxi">消息（<span class="orange"><?=$_SESSION['unreadmsg']?></span>）</a>
				<span class="greyline">|</span>
				<a href="#" id="logout">[退出]</a>
			</div>
			<div class="head">
				<div class="logo">
					<span><a href="http://<? $nosee = array('9117you.12301.cc','haopiao.12301.cc');if(in_array($h_config[$httphost]['host'],$nosee)){}else{?><?=$httphost?><?}?>"><img src="<?=$h_config[$httphost]['logo']?>" /></a></span>
				</div>
				<?if($_SERVER['HTTP_HOST']=='www.12301.cc'):?>
				<div class="header_top" onclick="window.location.href='http://www.12301.cc/tao_apply.html'">
					<img src="http://www.12301.cc/images/header_top.gif" />
				</div>
				<?else:?>
				<div class="search">
					<form action="plist.html">
						<input type="text" class="search_inpt" value="<?=$_REQUEST['key']?urldecode($_REQUEST['key']):""?>" placeText="输入您想找产品的名称关键词，如“故宫”" name="key" id="keyword"/>
						<input type="hidden" name="p_type" value="<?=$_REQUEST['p_type']?>" id="p_type"/>
						<input type="submit" class="search_inpb" name="" value=""/>
					</form>
					<ul class="sear_more" id="sear_more">
						<li id="firli"><?=$defaultType?></li>
						<li p_type="A">门票</li> 
						<li p_type="B">线路</li>
						<li p_type="C">酒店</li>
					</ul>
					<i class="xiala_icon"></i>
				</div>
				<?if(!$access['yd']):?>
				 <div class="righed_f">
					<a><img src="//www.12301.cc/images/head_rigimg.png" /></a>
				 <?endif;?>
				<?endif;?>
				</div>
			</div>
		</div>
	</div> -->
	<div class="headerWrap">
		<div class="header">
			<div class="header_left">
					<img class="header_img_t"src="http://www.12301.cc/images/logo_new.png">
					<img class="header_img_r"src="http://www.12301.cc/images/banner_new.png">
			</div>
			<div class="header_right">
				<span class="user_p">
					<i class="iconfont user_name">&#xe682;</i>
					<a href="account_info.html" class="url_text_color"><?=$_SESSION['sdname']?$_SESSION['sdname']."：":""?><?=$_SESSION['dname']?></a>
				</span>
				<span class="notice_p">
					<a href="notice.html?inbox" >
						<i class="iconfont notice">&#xe683;</i>
						<span class="count_num"><?=$_SESSION['unreadmsg']?></span>
					</a>
				</span>
				<a href="#" id="logout">
					<i class="iconfont exit_p">&#xe681;</i>
				</a>
			</div> 
		</div>
	</div>
	
	<script language="javascript" src="//www.12301.cc/js/header.js"></script>
	<div class="navmem_war">
        <div class="navmem">
        	<div class="subnav">
			<?=Navi::breadcrumb($pages, $depth)?>
        </div>
        </div>
    </div>
	 <!--主体-->
    <div class="main" id="special_w">
		<!--subnav-导航栏-->
		<div class="subnav">
			<?=Navi::breadcrumb($pages, $depth)?>
        </div>
        <div id="gotop" class="none" ><a><i></i></a></div>
        <!--menu-->